package main

import "fmt"

type Animal interface {
	Eat()
	GetType() string
	GetName() string
}

type Dog struct {
}

func (dog *Dog) Eat() {

}

func (dog *Dog) GetType() string {
	return "dog"
}

func (dog *Dog) GetName() string {
	return "xiaohua"
}

func main() {
	dog := new(Dog)
	fmt.Println(dog.GetName())
	fmt.Println(dog.GetType())

	fmt.Println("interface")
}
